package com.cash.channel.svc.service.api;

import com.cash.channel.svc.service.base.BankCardList;
import com.cash.channel.svc.util.ServiceUtils;
import com.cash.channel.api.constant.Constant;
import com.cash.channel.api.exception.CashChannelException;
import com.cash.channel.api.model.ApiRequestModel;
import com.cash.channel.api.model.ApiResponseModel;
import com.cash.channel.api.model.response.BankCardListResponse;
import com.cash.channel.api.service.BaseApi;
import org.springframework.stereotype.Service;

@Service("bankCardList")
public class CJH000004 implements BaseApi<BankCardListResponse> {

    @Override
    public ApiResponseModel<BankCardListResponse> doProcess(ApiRequestModel apiRequestModel) throws CashChannelException {
        BankCardList bankCardList = ServiceUtils.getBean(apiRequestModel.getInterfaceType()+ Constant.SERVICE.银行卡列表, BankCardList.class);
        return bankCardList.getBankCardList(apiRequestModel);
    }

}
